<?php
class Default_Model_Product extends Zend_Db_Table{
    
    protected $_name="user";
    protected $_primary="id";
    public function getProduct(){
        echo '<br>' .  __CLASS__ . ' - ' .__FUNCTION__;
    }
    public function listall(){
        return $this->fetchall()->toArray();
    }
    public function test(){
        return $this->fetchRow("id",2)->toArray();
    }
    public function abc(){
        return $this->select()->from('user','id');
    }
    public function insertDB(){
    	$encode = new Zendvn_Encode;
    	$row =$this->fetchNew();
    	$row->email="emaal@gmail.com";
    	$row->username="adxm";
    	$row->password=$encode->password(123456);
    	$row->full_name="trung";
    	$row->status=1;
    	$row->save();
    }
}